const router = require('koa-router')()
const userctrl = require('../controllers/user') // 引入用户模块

router.prefix('/api')

router
  .get('/user/info', userctrl.info)
  .post('/user/register',userctrl.register)
  .post('/user/login',userctrl.login)


module.exports = router